<template>
  <div>
   姓名<input type="text" v-model.trim="form.uname">
   年龄<input type="text" v-model.number="form.age">
   薪资<input type="text" v-model.number.lazy="form.salary">
   
   <tr></tr><button @click="oh">提交</button>
  </div>
</template>
<script>
export default {
data () {
  return {
    form : {
      uname:'',
      age :'',
      salary:''
    }
  }
},
methods:{
  oh() {
    console.log('你提交的数据是: ',this.form);
  }
}
}
</script>

<style>

</style>